# message_history/sql_message_history.py
from message_history.async_pg_history import AsyncPostgresChatMessageHistory

def get_session_history(session_id: str):
    return AsyncPostgresChatMessageHistory(
        session_id=session_id,
        table_name="langchain_chat_messages",
    )